using System;

namespace Common.Entity
{
	/// <summary>
	/// 所有sprite的公共基类
	/// </summary>
	public abstract class BaseSpriteEntity : BaseEntity
	{
		public BaseSpriteEntity (int Id):base(Id)
		{
		}

		/// <summary>
		/// 所有的公共属性都保存到数组里面
		/// </summary>
		/// <value>The properties.</value>
		public int[] Properties {
			get;
			set;
		}

		public int getProperty(SpritePropertyEnum property)
		{
			return this.Properties[(int)property];
		}

		public void setProperty(SpritePropertyEnum property,int value)
		{
			this.Properties[(int)property] = value;
		}

		public int getSpeed(){
			return this.getProperty(SpritePropertyEnum.Speed);
		}
	
	}
}

